package com.sgs.carbon.web.modules.common.convert.logger;

import com.sgs.carbon.common.pojo.PageResult;
import com.sgs.carbon.web.modules.common.controller.logger.vo.loginlog.SysLoginLogCreateReqVO;
import com.sgs.carbon.web.modules.common.controller.logger.vo.loginlog.SysLoginLogExcelVO;
import com.sgs.carbon.web.modules.common.controller.logger.vo.loginlog.SysLoginLogRespVO;
import com.sgs.carbon.web.modules.common.dal.dataobject.logger.SysLoginLogDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @see <a href="https://github.com/mapstruct/mapstruct"><b>mapstruct</b></a>
 *
 * @author Dave Liu
 * @date 2021-10-07
 */
@Mapper
public interface SysLoginLogConvert {

    SysLoginLogConvert INSTANCE = Mappers.getMapper(SysLoginLogConvert.class);

    SysLoginLogDO convert(SysLoginLogCreateReqVO bean);

    PageResult<SysLoginLogRespVO> convertPage(PageResult<SysLoginLogDO> page);

    List<SysLoginLogExcelVO> convertList(List<SysLoginLogDO> list);

}
